//
//  CYAssetDetailmodel.m
//  CreditAddressBook
//
//  Created by Mosu&Cuu on 16/2/22.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "CYAssetDetailmodel.h"

@implementation CYAssetDetailmodel
-(instancetype)initWithDictionary:(NSDictionary *)dic{
    self = [super init];
    if(nil == self){
        return nil;
    }
    NSString *str = [dic objectForKey:@"createTime"];
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:str.longLongValue/1000];
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
    self.createTime = [dateFormatter stringFromDate:date];
//    self.account = [dic objectForKey:@"account"];
//    self.surplusAccount = [dic objectForKey:@"surplusAccount"];
//    self.eventId = [dic objectForKey:@"eventId"];
    
    return self;
}

@end
